package com.demo.client.pojo.com.demo.pojo;

import java.io.Serializable;

/**
 * @author:谢君臣
 * @Date:2021/7/25-15:15
 * @version:1.0
 * @function:
 */
public class Message implements Serializable {
    private long id;
    private String msg;
    private String time;
    private User send;
    private User receive;

    public Message() {
    }

    public Message(long id, String msg, String time, User send, User receive) {
        this.id = id;
        this.msg = msg;
        this.time = time;
        this.send = send;
        this.receive = receive;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public User getSend() {
        return send;
    }

    public void setSend(User send) {
        this.send = send;
    }

    public User getReceive() {
        return receive;
    }

    public void setReceive(User receive) {
        this.receive = receive;
    }

    @Override
    public String toString() {
        return "Message{" +
                "id=" + id +
                ", msg='" + msg + '\'' +
                ", time='" + time + '\'' +
                ", send=" + send +
                ", receive=" + receive +
                '}';
    }
}
